Use the default babl tolerance level if BABL_TOLERANCE is the empty string
authorMartin Nordholts <martinn@src.gnome.org>
Sun, 16 Nov 2008 12:55:17 +0000 (12:55 +0000)
committerMartin Nordholts <martinn@src.gnome.org>
Sun, 16 Nov 2008 12:55:17 +0000 (12:55 +0000)
* babl/babl-fish-path.c: Use the default babl tolerance level if
BABL_TOLERANCE is the empty string so that we don't get a
tolerance level of 0.0 in that case.

svn path=/trunk/; revision=357

ChangeLog
babl/babl-fish-path.c

index 6a5c6f5f4c4cc45d91c48e08fbf5693a8c3bf040..d6ea0b2c3aa173ca2b9df02c56b92af9e3c0d5be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-11-16  Martin Nordholts  <martinn@svn.gnome.org>
+
+       * babl/babl-fish-path.c: Use the default babl tolerance level if
+       BABL_TOLERANCE is the empty string so that we don't get a
+       tolerance level of 0.0 in that case.
+
 2008-11-16  Martin Nordholts  <martinn@svn.gnome.org>
 
        * babl/babl.h: Add #define BABL_ALPHA_THRESHOLD which is the alpha
index d2cd4e74f1a62c1b348dd5601c41a4df7898f1ba..ea6b1ffb34a57d9a826ad4c8b8930d12cd6a070b 100644 (file)
@@ -68,7 +68,7 @@ static double legal_error (void)
     return error;
 
   env = getenv ("BABL_TOLERANCE");
-  if (env)
+  if (env && env[0] != '\0')
     error = atof (env);
   else
     error = BABL_LEGAL_ERROR;